from peewee import *

from config.base_config import get_db_o

db_o = get_db_o()


class BitgetDepthO(Model):
    id = BigIntegerField(primary_key=True)
    create_time = DateTimeField()
    currency_id = IntegerField()
    inst_id = CharField()
    direction = CharField()
    ranking = IntegerField()
    price = DecimalField()
    sz = DecimalField()
    ts = CharField()

    class Meta:
        database = db_o
        table_name = "bitget_depth"
